package net.cityside.summer.web.controller;

import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("login")
public class LoginController {

	@RequestMapping
	public ModelAndView login(HttpSession session) {
		session.setAttribute("sessionTest", "sessionTestValue");
		ModelAndView mv = new ModelAndView("login");
		mv.addObject("testKey", "testValue");
		return mv;
	}

	@RequestMapping("denied")
	public String denied() {
		return "access_denied";
	}
}
